package com.huang.decorator;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p></p>
 *
 * @author aneng huang
 * @since 2020-10-28 16:05:47
 */
public abstract class ShapeDecorator implements Shape {

    private static final Logger logger = LoggerFactory.getLogger(ShapeDecorator.class);

    protected Shape shape;

    public ShapeDecorator(Shape shapeDecorator) {
        this.shape = shapeDecorator;
    }


    @Override
    public void draw() {
        logger.info("调用父类的画画功能！");
        shape.draw();
    }
}
